package com.example.mountainwalker.service.impl;

import com.example.mountainwalker.entity.ScenicLikeInfo;
import com.example.mountainwalker.mapper.ScenicLikeMapper;
import com.example.mountainwalker.service.ScenicLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScenicLikeServiceImpl implements ScenicLikeService {
    @Autowired
    private ScenicLikeMapper scenicLikeMapper;

    @Override
    public List<ScenicLikeInfo> getScenicLikeInfo() {
        return scenicLikeMapper.getScenicLikeInfo();
    }

    @Override
    public ScenicLikeInfo getScenicLikeInfoById(Integer id) {
        return scenicLikeMapper.getScenicLikeInfoById(id);
    }

    @Override
    public int deleteScenicLikeInfoById(Integer id) {
        return scenicLikeMapper.deleteScenicLikeInfoById(id);
    }

    @Override
    public int insertScenicLikeInfo(ScenicLikeInfo scenicLikeInfo) {
        return scenicLikeMapper.insertScenicLikeInfo(scenicLikeInfo);
    }
}
